From c7fb810f8014bca65935309bf2c6b558a9e1ba42 Mon Sep 17 00:00:00 2001
From: Sebastien Castiel <sebastien@castiel.me>
Date: Thu, 11 Jan 2024 17:12:21 -0500
Subject: Add category icons

---
 src/app/groups/[groupId]/expenses/expense-list.tsx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/app/groups/[groupId]/expenses/expense-list.tsx')

diff --git a/src/app/groups/[groupId]/expenses/expense-list.tsx b/src/app/groups/[groupId]/expenses/expense-list.tsx
index 3fae873..9217123 100644
--- a/src/app/groups/[groupId]/expenses/expense-list.tsx
+++ b/src/app/groups/[groupId]/expenses/expense-list.tsx
@@ -1,4 +1,5 @@
 'use client'
+import { CategoryIcon } from '@/app/groups/[groupId]/expenses/category-icon'
 import { Button } from '@/components/ui/button'
 import { getGroupExpenses } from '@/lib/api'
 import { cn } from '@/lib/utils'
@@ -55,6 +56,10 @@ export function ExpenseList({
           router.push(`/groups/${groupId}/expenses/${expense.id}/edit`)
         }}
       >
+        <CategoryIcon
+          category={expense.category}
+          className="w-4 h-4 mr-2 mt-0.5 text-muted-foreground"
+        />
         <div className="flex-1">
           <div className={cn('mb-1', expense.isReimbursement && 'italic')}>
             {expense.title}
-- 
cgit v1.3

